package 富婆梦.第一阶段.Java基础视频学习.线程的练习.练习;

/**
 * @ProjectName: java-learning
 * @Package: 富婆梦.第一阶段.线程的练习.练习
 * @ClassName: Demo3
 * @Author: hemengjin
 * @Description:
 * @Date:2021/11/1 19:48
 * @Version: 1.0
 */
public class Demo3 {
    public static void main(String[] args) {
        new Thread(){
            @Override
            public void run() {
                super.run();
                System.out.println(getName());
            }
        }.start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
            }
        }).start();

        System.out.println(Thread.currentThread().getName());
    }
}
